﻿using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace RoboAssembleX.Application.Common
{
    public class MessageModel: BindableBase
    {

        public MessageModel(string content, int level = 0)
        {
            this.Time = DateTime.Now;
            this.Content = content;
            this.Level = level;
        }
        public MessageModel(string content,DateTime time, int level = 0)
        {
            this.Time =time;
            this.Content = content;
            this.Level = level;
        }
        private DateTime time; public DateTime Time { get { return time; } set { time = value; RaisePropertyChanged(); } }
        private string content; public string Content { get { return content; } set { content = value; RaisePropertyChanged(); } }
        private int level; public int Level { get { return level; } set { level = value; RaisePropertyChanged(); } }
    }
}
